package com.web.exiaodao.business.entity;

import com.web.exiaodao.business.constant.JConstant;
import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 
* @ClassName: FranchiseTable 
* @Description: 加盟申请定义表
* @author eason
* @date 2015年3月23日 下午1:00:00 
*
 */
@Entity
@Table(name = "tb_xa_franchisetable")
@ApiModel(value="加盟申请定义表")
public class FranchiseTable extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="申请人ID,申请人ID")
	private Long userId;
	@ApiModelProperty(value="申请人姓名,申请人姓名")
	private String customer_Name;
	@ApiModelProperty(value="手机号码,手机号码")
	private String cellphone;
	@ApiModelProperty(value="公司名称(别的信息全在照片上面),公司名称")
	private String franchise_Unit_Name;
	@ApiModelProperty(value="照片（多张）,照片（多张）")
	private String franchise_Unit_PicUrls;
	@ApiModelProperty(value="审核状态,审核状态(1:待审核(默认) 2：审核通过 3：审核拒绝 )")
	private Integer franchise_State;
	@ApiModelProperty(value="拒绝原因,拒绝原因")
	private String refuse_Reason;
	@ApiModelProperty(value="加盟协议代码多个,加盟协议多个用逗号分割 1：尊老达人合作协议 2：尊老合作协议 3：尊老机构合作协议 4：Business Agreement")
	private String agreements;
		
	
	public void setUserId(Long userId){
		this.userId=userId;
	}
	
	@Column(nullable=true,length=50)
	public Long getUserId(){
		return userId;
	}
	public void setCustomer_Name(String customer_Name){
		this.customer_Name=customer_Name;
	}
	
	@Column(nullable=true,length=50)
	public String getCustomer_Name(){
		return customer_Name;
	}
	public void setCellphone(String cellphone){
		this.cellphone=cellphone;
	}
	
	@Column(nullable=true,length=50)
	public String getCellphone(){
		return cellphone;
	}
	public void setFranchise_Unit_Name(String franchise_Unit_Name){
		this.franchise_Unit_Name=franchise_Unit_Name;
	}

	@Column(nullable=true,length=50)
	public Integer getFranchise_State(){
		return franchise_State;
	}
	public void setRefuse_Reason(String refuse_Reason){
		this.refuse_Reason=refuse_Reason;
	}
	
	@Column(nullable=true,length=255)
	public String getRefuse_Reason(){
		return refuse_Reason;
	}

    @Column(nullable=true,length=2550)
    public String getFranchise_Unit_PicUrls() {
        return franchise_Unit_PicUrls;
    }

    public void setFranchise_Unit_PicUrls(String franchise_Unit_PicUrls) {
        this.franchise_Unit_PicUrls = franchise_Unit_PicUrls;
    }

    public void setFranchise_State(Integer franchise_State) {
        this.franchise_State = franchise_State;
    }

    @Column(nullable=true,length=100)
    public String getFranchise_Unit_Name() {
        return franchise_Unit_Name;
    }

	@Column(nullable=true,length=100)
	public String getAgreements() {
		return agreements;
	}

	public void setAgreements(String agreements) {
		this.agreements = agreements;
	}

	@Override
	public void setInsertBefore() {
		super.setInsertBefore();
		franchise_State = JConstant.FrancehiseStatus.WAITING;
	}
}
